package com.example.java_message_queue;

import com.example.java_message_queue.mqserver.BrokerServer;
import com.example.java_message_queue.mqserver.mapper.MetaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@SpringBootApplication
public class JavaMessageQueueApplication {
	public static ConfigurableApplicationContext ac;

	public static void main(String[] args) throws IOException {
		ac = SpringApplication.run(JavaMessageQueueApplication.class);

		BrokerServer server = new BrokerServer(9090);
		server.start();
	}

}
